Let's look at some of the
common mistakes made and the best practices to follow while performing
the exercise. Before you do that, please ensure the following. The request-response model
of communication between the microservices is
appropriately implemented. The URL provided in the axios
request methods is correct. MongoDB is installed and
running at a specific port. Common mistakes made while
performing the exercise. While connecting Mongoose
with Mongo database, make sure the correct
URL is given and an open event is called
on the connection object. While sending the request from the order service
to other services, makes sure the URL given in the axios.get method is correct. While avoiding the
common mistakes, note some of the best practices while establishing
intercom communication. All the services must have
appropriate model classes. Ensure that each
microservice has a DAO, Service Controller,
and Router Layer. Use the axios library
to communicate synchronously between the
different microservices.